import 'package:json_annotation/json_annotation.dart'; 
  
part 'dynamic_user_info_model.g.dart';


@JsonSerializable()
  class DynamicUserInfoModel extends Object {

  @JsonKey(name: 'code')
  int code;

  @JsonKey(name: 'message')
  String message;

  @JsonKey(name: 'data')
  Data data;

  DynamicUserInfoModel(this.code,this.message,this.data,);

  factory DynamicUserInfoModel.fromJson(Map<String, dynamic> srcJson) => _$DynamicUserInfoModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$DynamicUserInfoModelToJson(this);

}

  
@JsonSerializable()
  class Data extends Object {

  @JsonKey(name: 'user_id')
  int userId;

  @JsonKey(name: 'nick_name')
  String nickName;

  @JsonKey(name: 'head_img')
  String headImg;

  @JsonKey(name: 'is_my')
  int isMy;

  @JsonKey(name: 'is_follower')
  int isFollower;

  @JsonKey(name: 'follower')
  int follower;

  @JsonKey(name: 'followers')
  int followers;

  @JsonKey(name: 'agree')
  int agree;

  @JsonKey(name: 'sex')
  int sex;

  Data(this.userId,this.nickName,this.headImg,this.isMy,this.isFollower,this.follower,this.followers,this.agree,this.sex,);

  factory Data.fromJson(Map<String, dynamic> srcJson) => _$DataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$DataToJson(this);

}

  
